package com.user.mediacoderdemo;

import android.media.MediaCodec;

import java.io.IOException;

/**
 * Created by zoudong on 2017/2/11.
 */

public class MediaDecodec extends AbsMediaCodecWraper {

    public MediaDecodec(String type) {
        super(type);
    }

    @Override
    MediaCodec createMediaCodec(String type)  {
        try {
            return MediaCodec.createDecoderByType(type);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}
